<%@ page contentType="text/html;charset=UTF-8"%>
<%@include file="../../common/operation_forbid.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
<base target= "_parent "/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" />
<%@include file="../common/includeBaseSet.jsp"%>
<%@include file="../../common/jsVersion.jsp" %>
<link rel="stylesheet" href="${jypath}/static/css/commen.css" />
<link rel="stylesheet" href="${jypath}/static/css/login.css" />
<link rel="stylesheet" href="${jypath}/static/css/style.css" type="text/css" media="all" />
<script src="${jypath}/static/js/jquery/jquery.md5.js"></script>
<script src="${jypath}/static/js/jquery/jquery-ui-1.10.3.full.min.js"></script>
<script src="${jypath}/static/js/system/login/login.js?v=${jsVersion}"></script>
<script src="${jypath}/static/plugins/layer/2.1/layer.js"></script>
</head>
<body style="font:15px/1.5 arial">
	<div class="qf-login blue-page" @keyup.13="login">
<!--         <a href="#" id="loginLogo" class="top_logo logo" class="login_logo"></a> -->
        <div class="container">
            <div class="qf-login-broadcast fl">
                <div class="broadcast-txt">
                    <p>&nbsp;</p>
                </div>
            </div>
            <div class="qf-login-form fl">
                <div class="qf-login-title">
                	锦艺M2案场管理&nbsp;|
                	<span style="font-size:16px">登录</span>
                </div>
                <div class="login-form">
                    <div class="qf-input-box">
                        <div class="input-icon fl">
                            <div class="input-icon-img1"></div>
                        </div>
                        <div class="qf-input fl">
                            <input type="text" id="accountNameId" name="accountName" placeholder="请输入手机号或登录名"
                            	datatype="s5-16" errormsg="昵称至少5个字符,最多16个字符！">
                        </div>
                    </div>
                    <div class="qf-input-box">
                        <div class="input-icon fl">
                            <div class="input-icon-img2"></div>
                        </div>
                        <div class="qf-input fl">
                            <input type="password" id="passwordId" name="password" placeholder="请输入密码">
                        </div>
                    </div>
                    <div class="qf-input-box">
                        <div class="qf-input fl" style="width:182px">
                            <input id="verifyCodeId" name="verifyCode" maxlength="4" 
                            	onkeyup="this.value=this.value.replace(/\D/g,'')"
                             	style="margin-left: 20px" placeholder="请输入验证码">
                        </div>
                        <div class="input-icon fl">
                            <img src="" id="vimg" alt="" width="90" height="35"/>
                        </div>
                    </div>
                </div>
                <a id="prompt" style="width:300px;margin:0 auto;text-align:left;display:none;" 
                	onclick="setupChrome()"
                	title="点击此处下载并安装谷歌浏览器">
                	*建议使用谷歌浏览器登录本系统（下载）
                </a>
                <a class="btn-login btn-login-orange" style="margin-top:10px" id="loginBtn">登&nbsp;&nbsp;录</a>
                <div class="qf-login-footer" style="margin-top:10px">株洲高科火炬信息有限公司</div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
$(function(){
	//$("#loginLogo").css("backgroundImage","url(login_logo)");
	isChrome();
});
var isReload="${isReload}";
if(isReload=="1"){
	var parentWindow=window.parent;
	if(null!=parentWindow){
		parentWindow.location.href="${jypath}/loginIndex?isReload=0";
	}
}
//判断是否使用chrome浏览器
function isChrome(){
	//获取浏览器内核厂商名称（比直接获取userAgent判断更有效）
	var vendor = navigator.vendor;
	if(vendor.indexOf("Google") >= 0){
		return false;
	}
	$("#prompt").show();
	$("#loginBtn").attr("style", "margin-top:1px");
}
//下载chrome浏览器
function setupChrome(){
	window.location.href = "http://sw.bos.baidu.com/sw-search-sp/software/f3795a484b3c1/ChromeStandalone_64.0.3282.186_Setup.exe"
}
</script>
</html>